package com.wjs.spring.bean2;

public class Wife {
    private Husband husband;
    private String name;

    public Wife(Husband husband, String name) {
        this.husband = husband;
        this.name = name;
    }

    @Override
    public String toString() {
        return "Wife{" +
                "husband=" + husband +
                ", name='" + name + '\'' +
                '}';
    }
}
